/*
 * @Description: Animal2
 * @Author: 平常心
 * @Date: 2024-09-20 14:52:29
 * @LastEditors: 平常心
 * @LastEditTime: 2024-09-20 14:55:38
 */
package day19;

/**
 * Animal2 抽象类
 */
public abstract class Animal2 {
  // 成员属性
  private String color;
  private int age;

  // 构造器
  public Animal2() {
  }

  public Animal2(String color, int age) {
    this.color = color;
    this.age = age;
  }

  // 成员方法 - 抽象方法
  public abstract void eat();

  public abstract void sleep();
}